/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.telsoft.managedbean.function;

import com.telsoft.business.LibraryBusiness;
import com.telsoft.entity.LibraryEntity;
import java.io.Serializable;
import java.sql.SQLException;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author THANHBINH
 */
@ManagedBean(name = "func_downloadleft")
@SessionScoped
public class Func_downloadleft implements Serializable {

    /**
     * Creates a new instance of Func_downloadleft
     */
    private List<LibraryEntity> libList;
    private LibraryEntity lib;

    public Func_downloadleft() {
//        lib = new LibraryEntity();
        try {
            libList = LibraryBusiness.getLibrary();
        } catch (SQLException ex) {
            ex.getMessage();
        }
    }

    public List<LibraryEntity> getLibList() {
        return libList;
    }

    public LibraryEntity getLib() {
        return lib;
    }

    public void setLibList(List<LibraryEntity> libList) {
        this.libList = libList;
    }

    public void setLib(LibraryEntity lib) {
        this.lib = lib;
    }
}
